<?php defined('BASEPATH') or exit('No direct script access allowed');

/**
 *
 * The galleries module enables users to create albums, upload photos and manage their existing albums.
 *
 * @author 		Jiminikiz
 * @package 	PyroCMS
 * @subpackage 	Databse Module
 * @category 	Modules
 */
class Database_m extends MY_Model {

	/**
	 * Select all fields from a table
	 *
	 * @author Jiminikiz
	 * @access public
	 * @return mixed
	 */	 
	public function select_all($table_name)
	{
        $sql = 'SELECT * FROM '.$table_name. ';';
        $query = $this->db->query($sql);
        $query->sql = $sql;
        return $query;
	}
}
/* End of file database_m.php */